package app.model;

import java.util.Date;

import com.agile.jfinal.model.CoreModel;
import com.jfinal.ext.plugin.tablebind.TableBind;

/**
* 数据库表对应的Model类，继承了CoreModel
* @author qiutian 
* @date 2013-12-19
*/
@TableBind(tableName="app_client",pkName="pk_basedoc") 
public class AppClient extends CoreModel<AppClient>{

	public static final AppClient dao = new AppClient();

	public static final String PK_CLIENT = "pk_client";   //主键
	public static final String VCODE = "vcode";   //编码
	public static final String VNAME = "vname";   //名称
	public static final String IS_ONLINE = "is_online";   //判断用户当前是否在线
	public static final String ONLINE_TIME = "online_time";   //用户在线的总持续时间
	public static final String START_TIME = "start_time";   //本次上线时间
	public static final String END_TIME = "end_time";   //本次登录下线时间
	public static final String CREATE_TIME = "create_time";   //创建时间
	public static final String CREATE_BY = "create_by";   //创建人
	public static final String VERSION = "version";   //客户端版本号
	public static final String IP_ADDRESS = "ip_address";   //访问IP
	public static final String PK_BASEDOC = "pk_basedoc";   //app管理档案主键
	public static final String GPS_ADDRESS = "gps_address";   //定位信息
	public static final String STATUS = "status";   //0-停用 1-活跃
	public static final String TS = "ts";   //时间戳
	public static final String DR = "dr";   //删除标记
	public static final String COLUMN_1 = "column_1";   //预留字段1
	public static final String COLUMN_2 = "column_2";   //预留字段2
	public static final String COLUMN_3 = "column_3";   //预留字段3
	public static final String COLUMN_4 = "column_4";   //预留字段4
	public static final String COLUMN_5 = "column_5";   //预留字段5


	/**数据库中的表名*/
	@Override
	public String getTableName() {
		// TODO Auto-generated method stub
		return "app_client";
	}


	/**主键字段名称*/
	@Override
	public String getPrimaryKey() {
		// TODO Auto-generated method stub
		return PK_CLIENT;
	}


	

}
